using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Text;
using System.Windows.Forms;

namespace ContextMenuTester
{
	public partial class Form1 : Form
	{
		public Form1()
		{
			InitializeComponent();
		}

		[DllImport("ShellMenuDll.dll")]
		public static extern bool ShowContextMenu(string path, int x, int y);
		
		private void button3_Click(object sender, EventArgs e)
		{
			ShowContextMenu( textBox1.Text, Cursor.Position.X, Cursor.Position.Y);
		}
	}
}